package com.paranoidmonkey.ode;

public class Capsule extends Geom {
	public Capsule(Space space, float radius, float length){
		handle=AndrODE.dCreateCapsule(space.handle, radius, length);
	}

	public void setParams(float radius, float length){
		AndrODE.dGeomCapsuleSetParams(handle, radius, length);
	}

	public float[] getParams(){
		float[] radius=new float[1],length=new float[1];
		AndrODE.dGeomCapsuleGetParams(handle, radius, length);
		return new float[]{radius[0],length[0]};
	}

	public float pointDepth(float x, float y, float z){
		return AndrODE.dGeomCapsulePointDepth(handle, x, y, z);
	}


}
